<!DOCTYPE html>
<html>
<head>
<title>ckdemo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
</head>
<body>
<script>
// 检测中文字节长度
function getLength(str){
    return str.trim().replace(/[^\x00-\xff]/g,"cc").length;
}
// window.location.href="https://www.baidu.com/";
</script>
</body>
</html>